#pragma once
#include <string>
#include <vector>
#include "Obstacle.h"

class Environment2D
{
public:
	Environment2D(void);
	virtual ~Environment2D(void);

	bool loadXml(const std::string& xmlName);
	void render();
	void getBoundingBox(int& left, int& right, int& top, int& bottom) const;

	bool clear(const Vector2& v, float radius) const;
	bool link(const Vector2& from, const Vector2& to, float radius) const;

protected:
	std::vector<Obstacle> obstacles_;
};

